package cn.formaggie.service.face;

import cn.formaggie.entity.model.roleandpermission.Worker;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface WorkerService {

    Worker getSimpleWorkerByWorkerId(String workerId);

    Worker getWorkerByWorkerId(String workerId);

    Boolean modifyWorkerInfo(Worker worker, HttpSession session);

    Boolean modifyWorkerInfo(Worker worker);

    Boolean modifyWorkerPsw(String workerId,String password);

    List<Worker> findWorkers(Map<String,Object> map);

    Integer getWorkersCount(Map<String,Object> map);

    Boolean addWorker(Worker worker);

    Boolean deleteWorkerByWorkerId(Integer id);
}
